package com.wltt.product.ahuthr.controller;

import com.wltt.product.ahuthr.model.ResultData;
import com.wltt.product.ahuthr.model.vo.QuerySystemLevelByTypeReq;
import com.wltt.product.ahuthr.service.SystemLevelSalaryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/system/level")
public class SystemLevelController {

    @Resource
    private SystemLevelSalaryService systemLevelSalaryService;

    /**
     * 查询薪级
     *
     * @return
     */
    @PostMapping(value = {"/querySystemLevelByType"})
    public ResultData querySystemLevelByType(@RequestBody QuerySystemLevelByTypeReq querySystemPostByTypeReq) {
        return systemLevelSalaryService.querySystemLevelByType(querySystemPostByTypeReq);
    }
}
